const express = require('express')
const expressJoi = require('@escook/express-joi')
const comment_handler = require('../router_handler/comment.js')
const { add_comment_schema } = require('../schema/comment.js')

const router = express.Router()

router.get('/get/:art_id', comment_handler.getComment)

router.post('/add', expressJoi(add_comment_schema), comment_handler.addComment)

module.exports = router